package com.feihong.txgw.model.bean.searchList;


import java.util.List;

/**
 * Created by PVer on 2017/7/27.
 */

public class SearchPhoneListModel {


    /**
     * code : 200
     * msg : 获取成功
     * data : {"store_list":[{"store_id":"1","store_name":"兰云霄a","store_tel":"13289911500","store_service":"回收,发生地方官史蒂夫xcvxcv","region_id":"457","store_addr":"南门","opening_time":"周一至周日 9:30-21:30","store_image":["aHR0cDovL3R4Z3dpbWcuZGpsbS53YW5nL3R4Z3cvMjAxNy8wNS8yNy8xNDk1ODU2NzE3SDUyNzU2NzE3NTcxNjFkLmpwZw==","aHR0cDovL3R4Z3dpbWcuZGpsbS53YW5nL3R4Z3cvMjAxNy8wNC8yNi8xNDkzMjA1MTY5SDQyNjA1MTY5NjQzNjJkLmpwZw=="],"longitude":"87.621971","latitude":"43.791451","erp_account":"asdfasdf","erp_password":"asdfasdf","is_show":"1","add_time":null,"update_time":"1495857085","last_time":"1495857085","shi":"乌鲁木齐市","sheng":"新疆","distance":"0.79"}],"goods_list":[],"page":"1","total_page":1}
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * store_list : [{"store_id":"1","store_name":"兰云霄a","store_tel":"13289911500","store_service":"回收,发生地方官史蒂夫xcvxcv","region_id":"457","store_addr":"南门","opening_time":"周一至周日 9:30-21:30","store_image":["aHR0cDovL3R4Z3dpbWcuZGpsbS53YW5nL3R4Z3cvMjAxNy8wNS8yNy8xNDk1ODU2NzE3SDUyNzU2NzE3NTcxNjFkLmpwZw==","aHR0cDovL3R4Z3dpbWcuZGpsbS53YW5nL3R4Z3cvMjAxNy8wNC8yNi8xNDkzMjA1MTY5SDQyNjA1MTY5NjQzNjJkLmpwZw=="],"longitude":"87.621971","latitude":"43.791451","erp_account":"asdfasdf","erp_password":"asdfasdf","is_show":"1","add_time":null,"update_time":"1495857085","last_time":"1495857085","shi":"乌鲁木齐市","sheng":"新疆","distance":"0.79"}]
         * goods_list : []
         * page : 1
         * total_page : 1
         */

        private String page;
        private int total_page;
        private List<StoreListBean> store_list;
        private List<GoodsListBean> goods_list;

        public String getPage() {
            return page;
        }

        public void setPage(String page) {
            this.page = page;
        }

        public int getTotal_page() {
            return total_page;
        }

        public void setTotal_page(int total_page) {
            this.total_page = total_page;
        }

        public List<StoreListBean> getStore_list() {
            return store_list;
        }

        public void setStore_list(List<StoreListBean> store_list) {
            this.store_list = store_list;
        }

        public List<GoodsListBean> getGoods_list() {
            return goods_list;
        }

        public void setGoods_list(List<GoodsListBean> goods_list) {
            this.goods_list = goods_list;
        }

        public static class StoreListBean extends SearchListEntity{
            /**
             * store_id : 1
             * store_name : 兰云霄a
             * store_tel : 13289911500
             * store_service : 回收,发生地方官史蒂夫xcvxcv
             * region_id : 457
             * store_addr : 南门
             * opening_time : 周一至周日 9:30-21:30
             * store_image : ["aHR0cDovL3R4Z3dpbWcuZGpsbS53YW5nL3R4Z3cvMjAxNy8wNS8yNy8xNDk1ODU2NzE3SDUyNzU2NzE3NTcxNjFkLmpwZw==","aHR0cDovL3R4Z3dpbWcuZGpsbS53YW5nL3R4Z3cvMjAxNy8wNC8yNi8xNDkzMjA1MTY5SDQyNjA1MTY5NjQzNjJkLmpwZw=="]
             * longitude : 87.621971
             * latitude : 43.791451
             * erp_account : asdfasdf
             * erp_password : asdfasdf
             * is_show : 1
             * add_time : null
             * update_time : 1495857085
             * last_time : 1495857085
             * shi : 乌鲁木齐市
             * sheng : 新疆
             * distance : 0.79
             */

            private String store_id;
            private String store_name;
            private String store_tel;
            private String store_service;
            private String region_id;
            private String store_addr;
            private String opening_time;
            private String longitude;
            private String latitude;
            private String erp_account;
            private String erp_password;
            private String is_show;
            private Object add_time;
            private String update_time;
            private String last_time;
            private String shi;
            private String sheng;
            private String distance;
            private List<String> store_image;

            public StoreListBean() {
                setItemType(SearchListEntity.SEARCH_STORE_TYPE);
            }

            public StoreListBean(String store_id, String store_name, String store_tel, String store_service, String region_id, String store_addr, String opening_time, String longitude, String latitude, String erp_account, String erp_password, String is_show, Object add_time, String update_time, String last_time, String shi, String sheng, String distance, List<String> store_image) {
                setItemType(SearchListEntity.SEARCH_STORE_TYPE);
                this.store_id = store_id;
                this.store_name = store_name;
                this.store_tel = store_tel;
                this.store_service = store_service;
                this.region_id = region_id;
                this.store_addr = store_addr;
                this.opening_time = opening_time;
                this.longitude = longitude;
                this.latitude = latitude;
                this.erp_account = erp_account;
                this.erp_password = erp_password;
                this.is_show = is_show;
                this.add_time = add_time;
                this.update_time = update_time;
                this.last_time = last_time;
                this.shi = shi;
                this.sheng = sheng;
                this.distance = distance;
                this.store_image = store_image;
            }

            public String getStore_id() {
                return store_id;
            }

            public void setStore_id(String store_id) {
                this.store_id = store_id;
            }

            public String getStore_name() {
                return store_name;
            }

            public void setStore_name(String store_name) {
                this.store_name = store_name;
            }

            public String getStore_tel() {
                return store_tel;
            }

            public void setStore_tel(String store_tel) {
                this.store_tel = store_tel;
            }

            public String getStore_service() {
                return store_service;
            }

            public void setStore_service(String store_service) {
                this.store_service = store_service;
            }

            public String getRegion_id() {
                return region_id;
            }

            public void setRegion_id(String region_id) {
                this.region_id = region_id;
            }

            public String getStore_addr() {
                return store_addr;
            }

            public void setStore_addr(String store_addr) {
                this.store_addr = store_addr;
            }

            public String getOpening_time() {
                return opening_time;
            }

            public void setOpening_time(String opening_time) {
                this.opening_time = opening_time;
            }

            public String getLongitude() {
                return longitude;
            }

            public void setLongitude(String longitude) {
                this.longitude = longitude;
            }

            public String getLatitude() {
                return latitude;
            }

            public void setLatitude(String latitude) {
                this.latitude = latitude;
            }

            public String getErp_account() {
                return erp_account;
            }

            public void setErp_account(String erp_account) {
                this.erp_account = erp_account;
            }

            public String getErp_password() {
                return erp_password;
            }

            public void setErp_password(String erp_password) {
                this.erp_password = erp_password;
            }

            public String getIs_show() {
                return is_show;
            }

            public void setIs_show(String is_show) {
                this.is_show = is_show;
            }

            public Object getAdd_time() {
                return add_time;
            }

            public void setAdd_time(Object add_time) {
                this.add_time = add_time;
            }

            public String getUpdate_time() {
                return update_time;
            }

            public void setUpdate_time(String update_time) {
                this.update_time = update_time;
            }

            public String getLast_time() {
                return last_time;
            }

            public void setLast_time(String last_time) {
                this.last_time = last_time;
            }

            public String getShi() {
                return shi;
            }

            public void setShi(String shi) {
                this.shi = shi;
            }

            public String getSheng() {
                return sheng;
            }

            public void setSheng(String sheng) {
                this.sheng = sheng;
            }

            public String getDistance() {
                return distance;
            }

            public void setDistance(String distance) {
                this.distance = distance;
            }

            public List<String> getStore_image() {
                return store_image;
            }

            public void setStore_image(List<String> store_image) {
                this.store_image = store_image;
            }
        }



        public static class GoodsListBean extends SearchListEntity{
            /**
             * sku_id : 1
             * spu_id : 2
             * sku_name : 测试1 测试 aaa
             * sn : NU147339662998_1
             * spec : [{"id":"1","name":"测试1","value":"测试","style":"1","img":"","color":""}]
             * shop_price : 100
             * thumb : http://txgwimg.djlm.wang/txgw/2016/09/09/1473396566G9099656690769d.png
             * keyword : ["测试"]
             */

            private String sku_id;
            private String spu_id;
            private String sku_name;
            private String sn;
            private int shop_price;
            private String thumb;
            private List<SpecBean> spec;
            private List<String> keyword;

            public GoodsListBean(String sku_id, String spu_id, String sku_name, String sn, int shop_price, String thumb, List<SpecBean> spec, List<String> keyword) {
                setItemType(SearchListEntity.SEARCH_GOODS_TYPE);
                this.sku_id = sku_id;
                this.spu_id = spu_id;
                this.sku_name = sku_name;
                this.sn = sn;
                this.shop_price = shop_price;
                this.thumb = thumb;
                this.spec = spec;
                this.keyword = keyword;
            }

            public GoodsListBean() {
                setItemType(SearchListEntity.SEARCH_GOODS_TYPE);
            }

            public String getSku_id() {
                return sku_id;
            }

            public void setSku_id(String sku_id) {
                this.sku_id = sku_id;
            }

            public String getSpu_id() {
                return spu_id;
            }

            public void setSpu_id(String spu_id) {
                this.spu_id = spu_id;
            }

            public String getSku_name() {
                return sku_name;
            }

            public void setSku_name(String sku_name) {
                this.sku_name = sku_name;
            }

            public String getSn() {
                return sn;
            }

            public void setSn(String sn) {
                this.sn = sn;
            }

            public int getShop_price() {
                return shop_price;
            }

            public void setShop_price(int shop_price) {
                this.shop_price = shop_price;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public List<SpecBean> getSpec() {
                return spec;
            }

            public void setSpec(List<SpecBean> spec) {
                this.spec = spec;
            }

            public List<String> getKeyword() {
                return keyword;
            }

            public void setKeyword(List<String> keyword) {
                this.keyword = keyword;
            }

            public static class SpecBean {
                /**
                 * id : 1
                 * name : 测试1
                 * value : 测试
                 * style : 1
                 * img :
                 * color :
                 */

                private String id;
                private String name;
                private String value;
                private String style;
                private String img;
                private String color;

                @Override
                public String toString() {
                    return "SpecBean{" +
                            "id='" + id + '\'' +
                            ", name='" + name + '\'' +
                            ", value='" + value + '\'' +
                            ", style='" + style + '\'' +
                            ", img='" + img + '\'' +
                            ", color='" + color + '\'' +
                            '}';
                }

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getValue() {
                    return value;
                }

                public void setValue(String value) {
                    this.value = value;
                }

                public String getStyle() {
                    return style;
                }

                public void setStyle(String style) {
                    this.style = style;
                }

                public String getImg() {
                    return img;
                }

                public void setImg(String img) {
                    this.img = img;
                }

                public String getColor() {
                    return color;
                }

                public void setColor(String color) {
                    this.color = color;
                }
            }

            @Override
            public String toString() {
                return "GoodsListBean{" +
                        "sku_id='" + sku_id + '\'' +
                        ", spu_id='" + spu_id + '\'' +
                        ", sku_name='" + sku_name + '\'' +
                        ", sn='" + sn + '\'' +
                        ", shop_price=" + shop_price +
                        ", thumb='" + thumb + '\'' +
                        ", spec=" + spec +
                        ", keyword=" + keyword +
                        '}';
            }
        }

    }
}
